package main;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Runner implements ActionListener{

	static JFrame frame;
	static JButton button;
	String[] list = {"doi 1", "doi 2", "doi 3"};


	public static void main(String[] args){
		new Runner();
	}

	public Runner(){
		frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		button = new JButton("test");
		button.addActionListener(this);
		frame.add(button);
		frame.setVisible(true);
		frame.pack();
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		String selected = OpenPublicationDialog.showDialog(frame,frame, list);

		System.out.println(selected);
	}
}
